<?php
// Tva e kod ot niki
include 'Abstract_Character.php';
include 'Session.php';

include 'Game.php';
include 'Player.php';
include 'Bot.php';

/** Init */
$sess = new Session();
$game = new Game();

// game_play
$game->create('player','ted');
$game->player['ted']->setHp('200');
$game->player['ted']->setDmg('20');
$game->player['ted']->show();

$game->create('bot', 'boss');
$game->bot['boss']->setHp('500');
$game->bot['boss']->setDmg('22');
$game->bot['boss']->show();

$sess->register('boss', $game->bot['boss']);
$sess->register('ted', $game->player['ted']);

$game->import($sess->get('ted'));
$game->import($sess->get('boss'));

$game->player['ted']->battle($game->bot['boss']);
$game->player['ted']->battle($game->bot['boss']);

$sess->show();

